<?php
/**
 * 矿机更新日志
 */
namespace app\common\model;

use think\Model;

class MiningProduceLog extends Model
{
    protected $name = 'mining_produce_log';

    public static function add($time,$content,$type = 1,$handle = 2){
        $data = [
            'time'  =>  $time,
            'content'  =>  $content,
            'type'  =>  $type,
            'handle'  =>  $handle,
            'add_time'  =>  date('Y-m-d H:i:s',time())
        ];
        return self::insertGetId($data);
    }

}